package com.ruoyi.hatha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 订单管理对象 p_kc_order
 * 
 * @author Dong
 * @date 2024-01-02
 */
public class PKcOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String ordernum;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long kcid;

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private Long tcid;

    /** 会员卡ID */
    @Excel(name = "会员卡ID")
    private Long ccid;

    /** 微信订单号 */
    @Excel(name = "微信订单号")
    private String wxorder;

    @Excel(name = "订单名称")
    private String gdname;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    /** 1课程订单 2套餐订单 3会员卡订单 */
    @Excel(name = "1课程订单 2套餐订单 3会员卡订单")
    private Integer type;

    /** 支付 */
    @Excel(name = "支付")
    private Integer ispay;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date paytime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createtim;

    /** 金额 分 */
    @Excel(name = "金额 分")
    private String jine;
    @Excel(name = "充值金额")
    private String czje;

    /** openid */
    @Excel(name = "openid")
    private String openid;
    @Excel(name = "paymentId")
    private String paymentId;

    @Transient
    private SysUser sysUser;

    @Transient
    private PKecheng kecheng;

    @Transient
    private PTaocan taocan;

    @Transient
    private PCards cards;

    private Long mid;

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public PKecheng getKecheng() {
        return kecheng;
    }

    public void setKecheng(PKecheng kecheng) {
        this.kecheng = kecheng;
    }

    public PTaocan getTaocan() {
        return taocan;
    }

    public void setTaocan(PTaocan taocan) {
        this.taocan = taocan;
    }

    public PCards getCards() {
        return cards;
    }

    public void setCards(PCards cards) {
        this.cards = cards;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public String getCzje() {
        return czje;
    }

    public void setCzje(String czje) {
        this.czje = czje;
    }

    public String getGdname() {
        return gdname;
    }

    public void setGdname(String gdname) {
        this.gdname = gdname;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrdernum(String ordernum) 
    {
        this.ordernum = ordernum;
    }

    public String getOrdernum() 
    {
        return ordernum;
    }
    public void setKcid(Long kcid) 
    {
        this.kcid = kcid;
    }

    public Long getKcid() 
    {
        return kcid;
    }
    public void setTcid(Long tcid) 
    {
        this.tcid = tcid;
    }

    public Long getTcid() 
    {
        return tcid;
    }
    public void setCcid(Long ccid) 
    {
        this.ccid = ccid;
    }

    public Long getCcid() 
    {
        return ccid;
    }
    public void setWxorder(String wxorder) 
    {
        this.wxorder = wxorder;
    }

    public String getWxorder() 
    {
        return wxorder;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setIspay(Integer ispay) 
    {
        this.ispay = ispay;
    }

    public Integer getIspay() 
    {
        return ispay;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setPaytime(Date paytime) 
    {
        this.paytime = paytime;
    }

    public Date getPaytime() 
    {
        return paytime;
    }
    public void setCreatetim(Date createtim) 
    {
        this.createtim = createtim;
    }

    public Date getCreatetim() 
    {
        return createtim;
    }
    public void setJine(String jine)
    {
        this.jine = jine;
    }

    public String getJine()
    {
        return jine;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }

    public String getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(String paymentId) {
        this.paymentId = paymentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ordernum", getOrdernum())
            .append("kcid", getKcid())
            .append("tcid", getTcid())
            .append("ccid", getCcid())
            .append("wxorder", getWxorder())
            .append("uid", getUid())
            .append("type", getType())
            .append("ispay", getIspay())
            .append("state", getState())
            .append("paytime", getPaytime())
            .append("createtim", getCreatetim())
            .append("jine", getJine())
            .append("openid", getOpenid())
            .append("gdname", getGdname())
            .append("paymentId", getPaymentId())
            .append("czje", getCzje())
            .append("mid", getMid())
            .toString();
    }
}
